package com.itheima.demo03;

public class Test {
    public static void main(String[] args) {
        // 创建对象
        Frog f = new Frog("小蛙", 1);
        f.eat();
        f.drinkWater();

        System.out.println(f.getName() +", "+ f.getAge());
    }
}
